package com.xuzili.wechat.controller;

import com.xuzili.wechat.servise.WeChatService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xu
 * @date:2022/8/2117:44
 */
@RequestMapping("/weChat")
@RestController
public class WeChatController {
    @Resource
    private WeChatService weChatService;

    @RequestMapping(value = "/push",method = RequestMethod.GET)
    public String pushMessage(){

        return weChatService.pushMessage();
    }
}
